<template>
  <div id="app">
    <router-link to="/home">首页</router-link>
    <router-link to="/about">关于</router-link>
    <router-link :to="{ path: '/profile', query: {name: 'why',age:18 ,height: 1.88}}">档案</router-link>
    <router-link :to="/user/+userId">用户</router-link>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
  data () {
    return {
      userId: 'lisi'
    }
  }
}
</script>

<style>
</style>
